/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package multi.agent.simulation;

/**
 *
 * @author Gerardo Nunez
 */
public class LinkInfo 
{

    public String NextLink = "";
    public int MaxSpeed = 0;
    public int OverHead = 0;
    public int MaxOverHead = 0;
    public int Distance = 0;

	 public LinkInfo ()
	 {
	
	 }
	 
	 public LinkInfo(Object[] _args) 
	 {
                if(_args != null && _args.length > 0) 
                {
                    //Load init arguments
                    NextLink = _args[0].toString();
                    MaxSpeed = Integer.parseInt(_args[1].toString());
                    OverHead = Integer.parseInt(_args[2].toString());
                    MaxOverHead = Integer.parseInt(_args[3].toString());
                    Distance = Integer.parseInt(_args[4].toString());
                    
                    System.out.println(" Linked to Traffic agent: " + NextLink +" Parameters: \n MaxSpeed : " + MaxSpeed +" \n OverHead : " + OverHead + " \n MaxOverHead : " + MaxOverHead + " \n Distance : " + Distance);
                     
                }
                else 
                {
                    //No argument passed. Kill the agent?
                }
	 }
	 
	 
    @Override
    public String toString() 
    {
        //return this.Name + " [$" + this.Price + "]";
    	return this.NextLink;
    }
    
}
